package ch2;

import java.util.Scanner;

public class Lianxi03073 {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        System.out.println("请输入是否是会员：是（y）/否（其他字符都可）：");
        String a = scan.next();
        System.out.println("请输入购物金额：");
        double money = scan.nextDouble();
        if (a.equals("y")) {
            if (money >= 200) {
                System.out.println("实际支付：" + money * 0.75);
            } else {
                System.out.println("实际支付：" + money * 0.8);
            }
        } else if (money >= 100) {
            System.out.println("实际支付" + money * 0.9);
        } else {
            System.out.println("实际支付" + money);
        }
    }
}
